package com.example.red_tea_house;

import android.app.Application;
import android.content.Context;

import org.litepal.LitePal;


public class MyApplication extends Application {
    private static Context context;
    @Override
    public void onCreate() {
    super.onCreate();
    context = getApplicationContext();
    LitePal.initialize(this);//配置litepal，一般不会直接把android name改成litepal。
    }
    /*
    * 2021.3.26
    * 用于全局获取Context
    * */
    public static Context getContext() {
        return context;
    }
}
